import request from './request'

// 获取仪表盘统计数据
export const getDashboardStats = () => {
  return request.get('/dashboard/stats')
}

// 获取入住趋势数据
export const getCheckinTrends = (params) => {
  return request.get('/dashboard/checkin-trends', { params })
}

// 获取房间类型分布数据
export const getRoomDistribution = () => {
  return request.get('/dashboard/room-distribution')
}

// 获取收入统计数据
export const getRevenueStats = (params) => {
  return request.get('/dashboard/revenue-stats', { params })
}

// 获取最新预订（最近入住）
export const getLatestReservations = (params) => {
  return request.get('/dashboard/latest-reservations', { params })
}

// 获取即将入住
export const getUpcomingCheckins = (params) => {
  return request.get('/dashboard/upcoming-checkins', { params })
}